<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>我的订单</title>
    <link rel="stylesheet" type="text/css" href="../css/style2.css">
    <style type="text/css">ul {
        list-style: none
    }

    a {
        text-decoration: none
    }</style>
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<div class="page-header" style="margin-bottom:0;color:#158bb8;background: #bce8f1">
    <h1>中工书城</h1>
</div>

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
<%--            <a class="navbar-brand">各类商品</a>--%>
        </div>
        <div class="collapse navbar-collapse" id="myNavbar">
            <ul class="nav navbar-nav">
                <li>
                    <a href="${pageContext.request.contextPath}/book/first">主页</a>
                </li>
                <li >
                    <a href="${pageContext.request.contextPath}/shopCar">我的购物车</a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/userAllOrder">我的订单</a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/toUpdataPassword">修改密码</a>
                </li>
                <li>
                    <a href="${pageContext.request.contextPath}/toUpdateUserInfor">修改个人信息</a>
                </li>
                <li><a href="${pageContext.request.contextPath}/logout">注销</a> <span class="divider">/</span></li>
            </ul>
            <div class="row-fluid">
                <div class="span4">
                    <div class="btn-group" style="float: right;">
                        <form class="form-search" action="${pageContext.request.contextPath}/book/UserQueryBook">`
                            <select class="selectpicker" name="QueryBook">
                                <option value="0">--请选择--</option>
                                <option value="bookId">书籍编号</option>
                                <option value="bookName">书籍名称</option>
                                <%--                                <option value="bookCounts">书籍数量</option>--%>
                                <option value="detail">书籍详情</option>
                                <%--                                <option value="detail">书籍价格</option>--%>
                                <%--                                    <option value="detail">书籍</option>--%>
                                <%--                                    <option value="detail">书籍详情</option>--%>
                            </select>
                            <input class="input-medium search-query" type="text" name="Value"/>
                            <button type="submit" class="btn">查找</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</nav>

<div class="car" style=" border:1px solid #bfd1eb;background:#f3faff;margin-top: 0px">
    <h3>全部商品</h3>
    <table class="table table-hover col-sm-10" style="  border:1px solid #bfd1eb;background:#f3faff">
        <thead>
        <tr>
            <th>图片</th>
            <th>名称</th>
            <th>简介</th>
            <th>单价</th>
            <th>数量</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="book" items="${Books}">
            <tr>
                <td><img src=${book.url1} lt="" width="90" height="90"></td>
                <td>${book.bookName}</td>
                <td>${book.detail}</td>
                <td>${book.price}</td>
                <td>${book.bookCounts}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/addItem?bookId=${book.bookId}">购物车</a>
                </td>
            </tr>
        </c:forEach>
        </tbody>

    </table>
</div>
<script type="text/javascript" src="../../js/js/jQuery.js"></script>
<script type="text/javascript" src="../../js/jquery.dialog.js"></script>

</body>
</html>